<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="utility.UserSession" %>
<%@ page import= "java.sql.ResultSet" %>
<%@ page import= "java.util.Vector" %>
<%--     <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> --%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Quiz Home</title>
</head>
<div id="b"><p><a href="/QSS/view/UserHome.jsp"><font color=#4682B4>Home</font></a></p></div>
<%-- <%System.out.println(request.getSession().getAttribute("userID")); --%>
<!--  %> -->
<div id="c"><font size="4" color=#4B5992><b>Available Quizzes</b></font></div>
<body>
<div id="e">
<p><a href="/QSS/view/Logout.jsp"><font color=#4682B4>Logout</font></a></p></div>
<div id="d">
<form id="form2" method="post" action="PlayQuiz">
<%-- <%request.getSession().setAttribute("type", "sampleGame"); %> --%>
<!-- <input class = "submit" type = "submit" name = "Quiztype" value="Sample Quiz" > -->
<button name = "QuizType" type="submit" value = "Sample">Sample Quiz</button><br><br>
<%
// String userID = (String)request.getSession().getAttribute("userID");
// ResultSet quizSet = UserSession.getQuizesOwned(userID);
// Vector Topics = new Vector();
// Vector SubTopics = new Vector();
// Vector ExactTopics = new Vector();

// while(quizSet.next())
// {
// 	String Topic = quizSet.getString("Topic");
// 	Topics.add(Topic);
// 	//request.getSession().setAttribute("Topic",Topic);
// 	//String quizName = Topic;
// 	String SubTopic = quizSet.getString("SubTopic");
//     if(SubTopic.length()!=0)
// 	{
// 		//quizName+="->"+SubTopic;
// 		//request.getSession().setAttribute("SubTopic",SubTopic);
//     	  SubTopics.add(SubTopic);

// 	}
// 	String ExactTopic = quizSet.getString("ExactTopic");
// 	//System.out.println("ExactTopic: "+ExactTopic.length());
// 	if(ExactTopic.length()!=0)
// 	{
// 		   //quizName+="->"+ExactTopic;
// 		   //request.getSession().setAttribute("ExactTopic",ExactTopic);
// 		   ExactTopics.add(ExactTopic);

// 	}
// }
%>
<select name="Topic">

<option value = "Biology"> Biology</option>
<option value = "Computer Science"> Computer Science</option>
<option value = "History"> History</option>
<option value = "Physics"> Physics</option>

</select>
<select name="SubTopic">

<option value=""> </option>
<option value = "Biochemistry"> Biochemistry</option>
<option value = "Cell Biology"> Cell Biology</option>
<option value = "Physiology"> Biochemistry</option>
<option value = "Data Structures"> Data Structures</option>
<option value = "American History"> Biochemistry</option>
<option value = "World History"> Biochemistry</option>



</select>
<select name="ExactTopic">

<option value=""> </option>
<option value = "World Wars"> World Wars</option>
<option value = "Circulatory System"> Circulatory System</option>


</select>
<button name = "QuizType" type="submit" value = "purchased">Play Quiz</button><br><br>

</form>
</div>
</body>
</html>